package org.dromara.hm.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.hm.domain.HmCustomer;
import org.dromara.hm.domain.HmFamily;
import org.dromara.hm.domain.vo.HmCustomerVo;
import org.dromara.hm.domain.vo.HmFamilyVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.system.domain.SysUser;
import org.dromara.system.domain.vo.SysUserVo;

/**
 * 客户家庭组Mapper接口
 *
 * @author Hzy
 * @date 2025-02-13
 */
public interface HmFamilyMapper extends BaseMapperPlus<HmFamily, HmFamilyVo> {

    @Override
    @DataPermission({
        @DataColumn(key = "deptName", value = "create_dept"),
        @DataColumn(key = "userName", value = "create_by")
    })
    default <P extends IPage<HmFamilyVo>> P selectVoPage(IPage<HmFamily> page, Wrapper<HmFamily> wrapper)
    {
        return BaseMapperPlus.super.selectVoPage(page, wrapper);
    }
}
